<div class="draw-point">
	<el-button size="mini" type="text" icon="el-icon-edit-outline" @click="toDraw">
		绘制点位
	</el-button>
	<el-dialog :close-on-click-modal="false" :title="'绘制点位：'+ title" :visible.sync="open" width="100%" append-to-body class="draw-point_dialog">
		<div slot="title" class="grid-header">
			<div class="title">绘制点位：{{title}}</div>
			<div class="close" @click="open = false">退出绘制</div>
		</div>
		<div id="comparison-container" v-if="open">
			<div id="before" class="map-item"></div>
			<div id="after" class="map-item"></div>
		</div>
		<el-button type="warning" class="options" @click="setCenter" v-permission="dataPermission">
			{{hasData ? '更新点位' : '绘制点位'}}
		</el-button>
	</el-dialog>
</div>
